<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<%@ include file="/WEB-INF/common/common.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta charset="utf-8" />
		<title>预约学车</title>
		<meta name="description" content="壁虎学车" />
		<meta name="keywords" content="壁虎学车"/>
		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<link rel="stylesheet" href="<%=path %>/BihuWeb/css/amazeui.min.css" />
		<link rel="stylesheet" href="<%=path %>/BihuWeb/css/style.css" />
		<script type="text/javascript" src="<%=path %>/BihuWeb/js/jquery.min.js" ></script>
		<script type="text/javascript" src="<%=path %>/BihuWeb/js/amazeui.min.js" ></script>
	</head>
	<body>
		<header data-am-widget="header" class="am-header am-header-default header">
	<!-- 	  <div class="am-header-left am-header-nav">
		     <a href="#left-link" class=""> 
		       <i class="am-header-icon am-icon-angle-left"></i>
		     </a>
		  </div> -->
		  <h1 class="am-header-title"> <a href="#title-link" class="" style="color: #333;">预约学车</a></h1>
		 
	  </header>
		
		<c:choose>
        	<c:when test="${0 == sign}">
        		<div class="am-g am-intro-bd">
		    	<a href="<%= basePath%>/SignUp_getProducts.action?openid=${openid}">
			       
			        <div class="am-intro-right am-u-sm-9">
			        	<div class="text">
			        		<span class="fl">您未报名驾校，无法预约学车</span>
			        		<span class="fr">&nbsp;立即报名</span>
                            
			        	</div>
                       
			        </div>
		       </a>
		    </div>
	        </c:when>
	       
	        <c:otherwise>
	        	 <div class="am-g am-intro-bd">
		    	<a href="<%=basePath%>/OrderCar_myOrder.action?bookstate=-1&openid=${openid}">
			       
			        <div class="am-intro-right am-u-sm-9">
			        	<div class="text">
			        		<span class="fl">剩余学时：<b>${sysUser.userPeriod }</b>学时</span>
			        		<span class="fr">&nbsp;查看详情</span>
                            
			        	</div>
                       
			        </div>
		       </a>
		    </div>
            
         <div data-am-widget="intro" class="am-intro am-cf am-intro-default">
        
        <div class="am-intro-hd">
		        <h2 class="am-intro-title">预约</h2>
		    </div>
	        </c:otherwise>
        </c:choose>
		
		
        
        
	  <s:iterator value="serviceCarList">
	  <a href="<%= basePath%>/OrderCar_toSchedule.action?carid=${carId}&platenumber=${plateNumber}&openid=${openid}">
		<div class="c-comment-list" style="border: 0;">
			<div class="am-g am-intro-bd">
		    	
			        <div class="am-intro-left am-u-sm-5"><img src="<%=path %>/${carImg}"  /></div>
			        <div class="am-intro-right am-u-sm-7">
			        	<h2>${plateNumber }</h2>
			        	<div class="text">
			        	 <p class="fr">    	<c:choose>
        	<c:when test="${0 == classType}">
        		C1
	        </c:when>
	        <c:when test="${1 == classType}">
	        	C2
	        </c:when>
	        <c:when test="${2 == classType}">
        		B2
	        </c:when>
	        <c:otherwise>
	        </c:otherwise>
        </c:choose>
        </p>
			        	 <p>教练：${coachmap.get(carId) }</p>
			           <span class="fr">查看日程</span>
        
        	<c:choose>
        	<c:when test="${0 == carType}">
        		<p>车型：小型自动档</p>
	        </c:when>
	        <c:when test="${1 == carType}">
	        	<p>车型：中型客车</p>
	        </c:when>
	        <c:when test="${2 == carType}">
        		<p>车型：大型客车</p>
	        </c:when>
	        <c:otherwise>
	        	<p></p>
	        </c:otherwise>
        </c:choose>
                        
                       

			        	
			        </div>
		   
		    </div>
           
		</div>
		</div>
		</a>
		<div class="clear"></div>
		</s:iterator>
		</div>
	</body>
</html>
